package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.RoleDto;
import com.zzyl.entity.Role;
import com.zzyl.vo.RoleVo;

import java.util.List;
import java.util.Set;

public interface RoleService {
    PageResponse<Role> findPage(RoleDto roleDto, Integer pageNum, Integer pageSize);

    Boolean insertRole(RoleDto roleDto);

    Boolean updateRole(RoleDto roleDto);

    Set<String> getResourcesById(Long roleId);


    void deleteByRoleId(Long roleId);

    List<RoleVo> initRoles();
}
